using Bee.Base.Abstractions.Navigation;
using Bee.Base.Models.Navigation;
using Bee.Plugin.First.ViewModels;

namespace Bee.Plugin.First;

public class FirstPluginNavigationCommand : INavigationCommand
{
    private readonly FirstViewModel _vm;

    public FirstPluginNavigationCommand(FirstViewModel vm)
    {
        _vm = vm;
    }
    public string Key => "First";
    public void Execute(NavigationCommandContext context)
    {
        context.Navigator.SetCurrentPage(_vm);
    }
}